﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentSys.Models
{
    /// <summary>
    /// 毕业表
    /// </summary>
    public class StudentGraduate : BaseEntity
    {
        [ForeignKey(nameof(Student))]
        public Guid StudentId { get; set; }

        public Student Student { get; set; }
        /// <summary>
        /// 公司名
        /// </summary>
        [Required]
        public string CopyName { get; set; }
        /// <summary>
        /// 入职时间
        /// </summary>

        public DateTime InTime { get; set; }
        /// <summary>
        /// 薪资
        /// </summary>
        [Required]
        public Decimal Salary { get; set; }
        /// <summary>
        /// 职位
        /// </summary>
        [Required]
        public String Position { get; set; }

        public string Address { get; set; }
    }
}
